Skip to content

Instantly share code, notes, and snippets.

@bennlee
bennlee / remapping-keys-via-hidutil.md
Created November 19, 2021 05:39
How to remapping keys on macOS without thirdparty applications.

How to remapping keys on macOS without thirdparty applications.

You could remapping keys via the macOS embedded command line tool hidutil.


Key IDs Table
Usage Usage ID (hex) Usage Usage ID (hex) Usage Usage ID (hex) Usage Usage ID (hex)
@roninjin10
roninjin10 / systemprompt.md
Created September 30, 2026 13:52
System prompt

[system: cell-contract]

You advance this task one cell at a time, in a JavaScript REPL that stays alive for the whole run.

Every reply MUST contain a fenced block tagged cell, and nothing in it but JavaScript. Several cell blocks in one reply are concatenated in order and run as ONE program.

The realm persists. Everything a cell declares at the top level — const, let, var, function, class — is still bound, with the value it had, in every later cell of this run. Declaring a name again rebinds it. Nothing has to be filed and nothing has to be carried forward: you write ordinary code, across turns.

console.log is how you talk to your next turn. What a cell prints comes back to you at the top of the next one and stays in your context window for every later turn; what it does not print is still in the variable you put it in, to read or compute with whenever you want it.

@ezracb
ezracb / Download a Windows 10 ISO.md
Created June 24, 2020 01:04 — forked from CHEF-KOCH/Download a Windows 10 ISO.md
Download a Windows 10 ISO directly from Microsoft (without the media creation tool)
@mathix420
mathix420 / medium.user.js
Last active October 6, 2026 06:24
User Script Bypass Medium / NYT / WaPo / Bloomberg / Reuters / Economist / FT/ Paywall - Working late 2026 - Click the RAW button to install
// ==UserScript==
// @name Freedium Article Redirect
// @namespace Violentmonkey Scripts
// @run-at document-start
// @match *://medium.com/*
// @match *://*.medium.com/*
// @match *://nytimes.com/*
// @match *://*.nytimes.com/*
// @match *://washingtonpost.com/*
// @match *://*.washingtonpost.com/*
@ashwch
ashwch / git-worktrees-zero-to-hero.md
Last active October 6, 2026 06:23
Git Worktrees: From Zero to Hero - A comprehensive guide to using Git worktrees with submodules

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@wojteklu
wojteklu / clean_code.md
Last active October 6, 2026 06:18
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@acmerfight
acmerfight / LIVE_MONITOR.md
Last active October 6, 2026 06:16
企业微信 macOS 本地聊天解析、附件导出与免 @ 持续监听自动回复:完整复现指南、多模态代码、视频上下文修复与测试

企业微信无需 @ 的持续监听与多模态自动回复:完整复现指南

更新:2026-09-22。本文是本 Gist 原有“本地聊天解析与附件导出”的增补,保留原来的离线导出工具,同时新增 live_* 常驻程序。这不是企业微信官方全群订阅接口,而是 macOS 已登录客户端的本地数据轮询 + 官方机器人发送接口。

你可以在自己的测试群复现:普通发言无需 @ → 本机接收文字或已缓存媒体 → AI 分析 → 机器人回复同一个群。使用前先完成本 Gist README 的模拟导出,确认当前 Mac 能运行数据库恢复代码。

一、先分清四条路线

路线 读取内容 发送消息 本次结论
@iamtarekrahman
iamtarekrahman / free-claude-api.md
Last active October 6, 2026 06:16
Get free AI API access and configure third-party inference in three steps worth $ 855+

Get $855+ Worth of Free AI API Credits with AgentRouter and 9 Other Platforms — [Full Claude Desktop Setup]

Last Update: 2️⃣9️⃣/0️⃣9️⃣/2️⃣0️⃣2️⃣6️⃣
Know other free services like these? Share them in the comment, and I'll add them to the list.
Shortlink: https://freeclaude.s.gy/api
\

This is GEM everyone-
| Hcnsec | Glm 5.3 flash, Deepseek V4 pro etc all super FAST | Click Here |\

@karpathy
karpathy / min-char-rnn.py
Last active October 6, 2026 06:15
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)